import { IConfig } from 'umi'; // ref: https://umijs.org/config/

export default {
  hzeroMicro: {
    mfGlobalConfig: {
      remotesConfig: {
        'hzero-front-hiam': 'http://localhost:8000',
      },
      mfCodeExposes: {
        'TEST-CARD': {
          package: 'hzero-front-hiam',
        },
        'TEST2-CARD': {
          package: 'test_module1`',
          code: 'TestCom',
        },
      },
      // 存放索引
      microMapUrls: [
        // 'http://localhost:5030'
      ],
      microServices: [
      ],
    },
    packages: [
      // // -- APPEND SUB MODULE ITEMS HERE --
      // {
      //   name: 'test-module1',
      //   aa: '3',
      // },
      // {
      //   name: 'test-module2',
      //   aa: '3',
      // },
      // {
      //   name: 'hzero-front-hiam',
      // },
      // {
      //   name: 'hzero-cli-demo',
      // },
    ],
  },
  define: {
    'process.env': {
      API_HOST: 'http://hzero-backend.open-front.hand-china.com',
      BASE_PATH: '/',
      PUBLIC_URL: '/',
      PLATFORM_VERSION: 'SAAS',
      REACT_APP_SC_DISABLE_SPEEDY: 'false',
      MULTIPLE_SKIN_ENABLE: true,
      // PACKAGE_PUBLIC_URL: 'http://localhost:5000',
      CLIENT_ID: 'localhost',
    },
  },
} as IConfig;
